<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:mj="http://mojarra.dev.java.net/mojarra_ext"
      xmlns:a4j="http://richfaces.org/a4j"> 

<h:head>
	<title>EducManager</title>
</h:head> 
<body> 
	<h:outputText value="CADASTRO DE PROFESSOR"></h:outputText>
	<br></br>
	<h:form>
		<h:panelGrid border="1" columns="2">
			<h:outputLabel value="Matricula:"></h:outputLabel>
			<h:inputText id="matricula" value="#{professorBean.professor.id}" label="Matricula" required="true"></h:inputText>
			<h:outputLabel value="Nome:"></h:outputLabel>
			<h:inputText id="nome" value="#{professorBean.professor.nome}" label="Nome" required="true" style="width: 341px; "></h:inputText>
			<h:commandButton value="Salvar" action="#{professorBean.salvar()}" style="width: 127px; "></h:commandButton>
		</h:panelGrid>
	</h:form>
	<br></br>
	<h:form>
		<h:commandButton value="Listar professores cadastrados" action="listagemdeprofessores"></h:commandButton>
	</h:form>
</body> 
</html>
